<?php
// contact to database
$connect = mysql_connect("localhost", "root", "") or die ("Error , check your server connection.");
mysql_select_db("stms");

$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$usertype=$_POST['usertype'];
$email=$_POST['email'];
$pass=$_POST['password'];
$password=md5($pass);
$username=$_POST['username'];
$confirmPassword=$_POST['confirmPassword'];
$confirmPassword=md5('$confirmPassword');



$query="insert into createuser values('$username','$password','$usertype','$firstname','$lastname','$email','$confirmPassword')";

mysql_query($query)  or die(mysql_error());
	echo "Your message has been received";





?>